package com.sh.wy.house.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sh.wy.house.entity.HouseList;
import com.sh.wy.house.entity.HouseListParam;
import com.sh.wy.house.mapper.HouseListMapper;
import com.sh.wy.house.service.IHouseListService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 房屋表 服务实现类
 * </p>
 *
 * @author 世豪学Java
 * @since 2023-12-20
 */
@Service
public class HouseListServiceImpl extends ServiceImpl<HouseListMapper, HouseList> implements IHouseListService {
    @Autowired
    private HouseListMapper houseListMapper;

    @Override
    public IPage<HouseList> getList(HouseListParam param) {
        IPage<HouseList> page = new Page<>(param.getCurrentPage(),param.getPageSize());

        return this.baseMapper.getList(page,param.getBuildName(),param.getUnitName(),param.getHouseNum(),param.getStatus());
    }
}
